package top.infopub.mgr.bpa.service;


import com.github.pagehelper.Page;
import top.infopub.generic.GenericService;
import top.infopub.mgr.bpa.domain.SubpackSuppleDomain;
import top.infopub.mgr.bpa.vo.SubpackSuppleVo;
import top.infopub.mgr.common.vo.RspVo;
import top.infopub.model.bpa.BpaCompPlan;
import top.infopub.model.bpa.InnerListing;
import top.infopub.model.bpa.SubpackSupple;
import top.infopub.model.mkt.ProjectAttachment;
import top.infopub.security.vo.AuthorizationVO;

import java.text.ParseException;
import java.util.List;


public interface SubpackSuppleService extends GenericService<SubpackSupple, String> {


    /**
     * 根据条件查询分包合同记录
     * @param subpackSuppleVo
     * @return
     * @see
     */
    Page<SubpackSuppleDomain> selectByDomainWhere(Page<SubpackSuppleDomain> page,
                                                  SubpackSuppleVo subpackSuppleVo) throws ParseException;

    RspVo selectProject();

    RspVo queryPackDetail(String id);

    RspVo saveAll(String bodyStr, Integer submitType, AuthorizationVO userDtl, SubpackSupple subpackSupple, List<InnerListing> innerListings, List<BpaCompPlan> compPlan, List<ProjectAttachment> attachmentList);

    SubpackSupple selectBySguid(String id);
}
